import request from '@/utils/request'

// 查询报警日志列表
export function listClarm(query) {
  return request({
    url: '/clarmlog/clarm/list',
    method: 'get',
    params: query
  })
}

// 查询报警日志详细
export function getClarm(id) {
  return request({
    url: '/clarmlog/clarm/' + id,
    method: 'get'
  })
}

// 新增报警日志
export function addClarm(data) {
  return request({
    url: '/clarmlog/clarm',
    method: 'post',
    data: data
  })
}

// 修改报警日志
export function updateClarm(data) {
  return request({
    url: '/clarmlog/clarm',
    method: 'put',
    data: data
  })
}

// 删除报警日志
export function delClarm(id) {
  return request({
    url: '/clarmlog/clarm/' + id,
    method: 'delete'
  })
}

// 导出报警日志
export function exportClarm(query) {
  return request({
    url: '/clarmlog/clarm/export',
    method: 'get',
    params: query
  })
}